package a.f.l;

import a.c.d;
import a.c.e;
import a.f.cd;
import a.f.o;

import java.util.Comparator;

class w
  implements Comparator
{
  private static final int a = -8;
  private static final int c = -4;
  private static final int d = 0;
  private o f;
  private e g;
  
  public w(o paramo, e parame)
  {
    this.f = paramo;
    this.g = parame;
  }
  
  public int compare(Object paramObject1, Object paramObject2)
  {
    int i2 = g.Cc;
    int i1 = g.Bc;
    int m = 0;
    int n = 0;
    d locald1 = (d)paramObject1;
    d locald2 = (d)paramObject2;
    int i;
    if ((i = this.g == locald1.e() ? 1 : 0) != 0)
    {
      if (i2 != 0) {
        break label80;
      }
      localcd1 = cd.d(this.f, locald1);
      if (i1 == 0) {
        break label81;
      }
    }
    label80:
    cd localcd1 = cd.e(this.f, locald1);
    label81:
    int j;
    if ((j = this.g == locald2.e() ? 1 : 0) != 0)
    {
      if (i2 != 0) {
        break label134;
      }
      localcd2 = cd.d(this.f, locald2);
      if (i1 == 0) {
        break label136;
      }
    }
    label134:
    cd localcd2 = cd.e(this.f, locald2);
    label136:
    if ((i2 != 0) || (localcd1 != null))
    {
      if (i2 != 0) {
        break label166;
      }
      if (localcd1.a()) {
        m = -8;
      }
    }
    label166:
    int k = a(localcd1);
    m += k;
    if (i2 == 0)
    {
      if (localcd2 != null)
      {
        if (i2 != 0) {
          break label219;
        }
        if (localcd2.a()) {
          n = -8;
        }
      }
      k = a(localcd2);
      n += k;
    }
    label219:
    if (i2 == 0)
    {
      if (m < n) {
        return -1;
      }
      if (i2 != 0) {}
    }
    else if (m > n)
    {
      return 1;
    }
    return 0;
  }
  
  private int a(cd paramcd)
  {
    int j = g.Cc;
    int i = 0;
    if ((j != 0) || (paramcd != null)) {
      if (j == 0) {
        switch (paramcd.b())
        {
        case 1: 
        case 2: 
        case 4: 
        case 8: 
          i = -4;
          if (j != 0) {
            break label88;
          }
          if (g.Bc == 0) {
            break;
          }
        }
      } else {
        i = 0;
      }
    }
    label88:
    return i;
  }
  
  public void a(e parame)
  {
    this.g = parame;
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.f.l.w

 * JD-Core Version:    0.7.0.1

 */